package org.cttic.visualization.visualization.common;

import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.cttic.visualization.visualization.common.module.OnlineCData;
import org.cttic.visualization.visualization.common.module.provinceData;
import org.cttic.visualization.visualization.util.DateUtil;
import org.cttic.visualization.visualization.util.ParseJsonDataUtil;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author shkstart
 * @create 2020-04-29 15:13
 */
public class test {
    public static void main(String[] args) throws ParseException {

//        String urlString =commonConf.StatisticsUrl+36+"0000";
//        RestTemplate restTemplate = new RestTemplate();
//        ResponseEntity<String> responseEntity = restTemplate.getForEntity(urlString, String.class);
//        String body = responseEntity.getBody();
//        System.out.println("结果："+body);
//        JSONObject data = ParseJsonDataUtil.getJsonData(body);
//        boolean success = data.getBooleanValue("success");
//        if(success){
//            JSONObject result = data.getJSONObject("result");
//            long online = result.getLongValue("online");
//            System.out.println("在线车辆数："+online);
//        }
        long l = System.currentTimeMillis();
        String s = DateUtil.StampToMonth(l);
        System.out.println(s);
    }
}
